﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace RealDataReceiver.Entities
{
    public class Channel
    {
        [BsonRepresentation(BsonType.ObjectId)]
        [BsonId]
        public string Id { get; set; }
        public string ChannelId { get; set; }

        public string ChannelName { get; set; }

        public List<ChannelDevice> DeviceList { get; set; }
    }

    public class ChannelDevice
    {
        public string DeviceId { get; set; }
        public string DeviceName { get; set; }

        public List<Signal> SignalList { get; set; }
    }

    public class Signal
    {
        public string SignalId { get; set; }
        public string SignalName { get; set; }
        public string Unit { get; set; }
    }
}
